package com.hancheng.commoncloud.feign.service;

import com.hancheng.commoncloud.business.entity.dto.UserIdDTO;
import com.hancheng.commoncloud.business.entity.vo.SysUserVO;
import com.hancheng.commoncloud.framework.annotation.PassToken;
import com.hancheng.commoncloud.framework.result.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "user-cloud",contextId = "common-user-contextId")
public interface UserFeignService {

    @PostMapping("/api/user/feign/getUserVOByUserId")
    Response<SysUserVO> getUserVOByUserId(@RequestBody UserIdDTO userIdDTO);
}
